package com.hx.zhg.constant;

/**
 * @description: 响应码和响应信息
 */
public enum ErrorCodeEnum {

    SUCCESS(1000, "操作成功！"),
    SYS_ERROR(9999, "系统出错啦，请稍后再试！"),
    PARAM_ERROR(1001, "参数校验出错！"),
    RESULT_ERROR(1002, "返回值异常！"),
    INVALID_REQUEST(1003, "非法请求！"),
    LOGIN_EXCEPTION(1004, "登录验证异常码！"),
    AUTH_ERROR(1005, "权限验证异常！"),
    REQUEST_TOKEN_ERROR(1006, "requestToken验证异常！"),
    REMOTE_API_TIMEOUT(1007, "远程调用服务超时"),
    SHOW_DIALOG(1008, "弹窗展示"),//弹窗展示
    REAL_NAME_DIALOG(1009, "未实名认证,请填写手机号!"), ;

    ErrorCodeEnum(int retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    private int retCode;
    private String retMsg;

    public int getRetCode() {
        return retCode;
    }

    public void setRetCode(int retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    @Override
    public String toString() {
        return "ErrorCodeEnum{" +
                "retCode=" + retCode +
                ", retMsg='" + retMsg + '\'' +
                '}';
    }
}
